/**
 * Description
 *
 * Creation Date 27/12/2017
 * @author Candy
 */
const system = (() => {
	let u = navigator.userAgent;
	let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
	let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
	let system;
	if (isAndroid) {
		system = 'Android'
	} else if (isIOS) {
		system = 'IOS'
	}
	return system
})();

const target = process.env.NODE_ENV !== 'production' ? '' : 'http://47.100.6.170:3389'; //目标网站

const urlConfig = {
	baseUrl: '',
	imgBaseUrl: 'https://4eb7f3de389ff6b61816-1dd1d9fd8ad438da629d92a7640b81cb.ssl.cf1.rackcdn.com/',
	categoryBaseUrl: 'https://84654884b68f749e7aa3-aa57143e2ca30795bf94ff3884a3b19b.ssl.cf1.rackcdn.com/public/images/showbrand/',
	productBaseUrl: 'https://s3.cn-north-1.amazonaws.com.cn/cdn.smartbuyglasses.cn/image/en/images/'
}

export {
	target,
	system,
	urlConfig
}
